import service from "../utils/request";

// 新增
export const createKnowledge = (data) => {
    return service({
        url: "/sysKnowledge/createSysKnowledge",
        method: "post",
        data
    })
}
// 根据标题查询
export const queryKnowledgeByTitle = (data) => {
    return service({
        url: "/sysKnowledge/queryKnowledgeByTitle",
        method: "post",
        data
    })
}

// 查询列表
export const getSysKnowledgeList = (params) => {
    return service({
        url: "/sysKnowledgeQuery/queryKnowledgeBySearch",
        method: 'get',
        params
    })
}

// 根据条件回显
export const querySuggestByTitle = (data) => {
    return service({
        url: "/sysKnowledge/querySuggestByTitle",
        method: "post",
        data
    })
}
